package net.posick.ws.xml;


public class XmlException extends RuntimeException
{
    private static final long serialVersionUID = 201403191258L;


    public XmlException()
    {
        super();
    }
    
    
    public XmlException(String detailMessage)
    {
        super(detailMessage);
    }
    
    
    public XmlException(Throwable throwable)
    {
        super(throwable);
    }
    
    
    public XmlException(String detailMessage, Throwable throwable)
    {
        super(detailMessage, throwable);
    }


    public static XmlException wrap(Throwable t)
    throws XmlException
    {
        XmlException xe = new XmlException(t.getMessage());
        xe.setStackTrace(t.getStackTrace());
        return xe;
    }
}
